package com.endpoint.memory.selector;

import java.util.ArrayList;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import com.endpoint.memory.configuration.MemoryEndpointConfiguration;

import lombok.extern.slf4j.Slf4j;

/**
 * Description:
 *
 * @author yuanma
 * @version 1.0
 * @date: 2018/7/6 15:04
 * @since JDK 1.8
 */
@Slf4j
public class MemoryEndpointImportSelector implements DeferredImportSelector {

	@Override
	public String[] selectImports(AnnotationMetadata metadata) {
		ArrayList<String> result = new ArrayList<>();
		result.add(MemoryEndpointConfiguration.class.getName());
		return result.toArray(new String[0]);
	}

}